import { AppRouteRecordRaw } from '@/types/route'
import { shallowRef } from 'vue'
import Layout from '@/layout/index.vue'

export let homeRouter: AppRouteRecordRaw = {
  path: '/home',
  name: 'home',
  component: shallowRef(Layout),
  meta: {
    title: '首页',
    hideRootMenu: true
  },
  children: [
    {
      path: '/home/info',
      component: () => import(/* webpackChunkName: "homeInfo" */ '@/views/home/homeInfo.vue'),
      name: 'homeInfo',
      meta: { title: '首页', icon: 'icon-shouye_icon1' }
    }
  ]
}

export default homeRouter
